package com.jt.safe.ui.staff.fragment

import androidx.recyclerview.widget.LinearLayoutManager
import com.jt.safe.R
import com.jt.safe.base.BaseFragment
import com.jt.safe.ui.adpter.OffDutyRecordAdapter
import com.jt.safe.viewmodel.NullViewModel
import kotlinx.android.synthetic.main.fragment_off_duty_record.*
import kotlinx.android.synthetic.main.home_title_bar_layout.*

class OffDutyRecordFragment : BaseFragment<NullViewModel>() {
    val data = mutableListOf("", "", "", "", "")

    companion object {
        fun newInstance() = OffDutyRecordFragment()
    }

    override val layoutId: Int
        get() = R.layout.fragment_off_duty_record

    override fun createObserver() {

    }

    override fun initView() {
        val offDutyRecordAdapter = OffDutyRecordAdapter()
        recycler.layoutManager = LinearLayoutManager(activity)
        recycler.adapter = offDutyRecordAdapter
        offDutyRecordAdapter.setNewData(data)
    }

    override fun initData() {

    }
}
